package InheritanceDemo;

public class CampusSystem {
    public static void main(String[] args) {
        Person p1 = new tach("T001","赵六","男",8000,5);
        Person p2 = new admi("A001","孙七","女",6000,"学生处");

        Person[] persons = {p1,p2};
        System.out.println("校园信息: ");
        for (Person p : persons){
            p.showBasicInfo();
            p.work();
            System.out.println("---------");
        }
    }
}
